package org.example.ruoxing_admin_springboot3.dao;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;
@Setter
@Getter
@Data
@TableName("`system_resources`")
public class SystemResourcesMenuListDao {
    private String resourcesId;
    private String resourcesType;
    private Integer resourcesLevel;
    private String parentNodeId;
    private String path;
    private String name;
    @JsonInclude(NON_NULL)
    private String component;
    @JsonInclude(NON_NULL)
    private String redirect;
    @JsonIgnore
    private String icon;
    @JsonIgnore
    private String title;
    @JsonIgnore
    private String isLink = "";
    @JsonIgnore
    private Boolean isHide;
    @JsonIgnore
    private Boolean isAffix;
    @JsonIgnore
    private Boolean isKeepAlive;
    @JsonIgnore
    private Boolean isRoot;
    private Map<String, Object> meta = new HashMap<>();
    private List<SystemResourcesMenuListDao> children = new ArrayList<SystemResourcesMenuListDao>();
    @Version
    private Integer version;
}
